import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
     {
      path:'/newadd',
      name:'newadd',
      component:()=>import('../views/Newadd.vue')
     },
     {
      path:'/index',
      name:'index',
      component:()=>import('../components/Index.vue')
     },
     { 
      path:'',
      redirect:'/index'
     }
  ]
})

export default router
